
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '加盟推广',
    enableValidate: false
})

@Injectable()
export class DataGridComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'jmhdbh',
        name: "{{jmhdbh_90eff549_caf7}}",
        binding: 'jmhdbh',
        updateOn: 'blur',
        defaultI18nValue: '活动编号',
    })
    jmhdbh: FormControl;

    @NgFormControl({
        id: 'jmhdmc',
        name: "{{jmhdmc_4df6c9d3_5v7b}}",
        binding: 'jmhdmc',
        updateOn: 'blur',
        defaultI18nValue: '活动名称',
    })
    jmhdmc: FormControl;

    @NgFormControl({
        id: 'jmhdrq',
        name: "{{jmhdrq_2996d4bf_yw97}}",
        binding: 'jmhdrq',
        updateOn: 'blur',
        valueConverter: new DateConverter('yyyy-MM-dd'),
        defaultI18nValue: '活动日期',
    })
    jmhdrq: FormControl;

    @NgFormControl({
        id: 'jmhdlx',
        name: "{{jmhdlx_a00f63b7_11qk}}",
        binding: 'jmhdlx',
        updateOn: 'blur',
        defaultI18nValue: '活动类型',
    })
    jmhdlx: FormControl;

    @NgFormControl({
        id: 'hdys',
        name: "{{hdys_b38409ed_l32z}}",
        binding: 'hdys',
        updateOn: 'blur',
        defaultI18nValue: '活动预算',
    })
    hdys: FormControl;

    @NgFormControl({
        id: 'hdfzr',
        name: "{{hdfzr_8dac49e3_3zvi}}",
        binding: 'hdfzr',
        updateOn: 'blur',
        defaultI18nValue: '活动负责人',
    })
    hdfzr: FormControl;

}